import request from '@/utils/request'

// 登录函数
/**
 * @description: 登录函数
 * @param {*} data { mobile,password}
 * @return {*} promise
 */
export const loginAPI = (data) => {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}

/**
 * 生成验证码
 */
export const verifycodeAPI = () => {
  return request({
    url: '/captchaImage'
  })
}

/** 获取用户信息 */
export const getUserInfoApi = () => {
  return request({
    url: '/getInfo'
  })
}
